package hu.vaes_dot_hrak.szoftlab4;

import hu.vaes_dot_hrak.szoftlab4.Constant.Way;

public class Stone extends Obstruction {
	public Stone(Field position) {
		super(position);
	}

	@Override
	public boolean isPushable() {
		return true;
	}

	@Override
	public void push(Way way) {
		position = position.getNeighboorOnWay(way);
		position.getNeighboorOnWay(way).pushStoneToHere(way);
	}

	@Override
	public void pushedStone(Constant.Way way) {
		position = position.getNeighboorOnWay(way);
		position.getNeighboorOnWay(way).pushStoneToHere(way);
	}
}
